/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module;

import java.util.Timer;
import wargame.entity.Economic;
import wargame.entity.Turn;

/**
 *
 * @author stanley.2007
 */
public class GameTurn {

    public static int current_turn = -1;
    public static int elapsed_second= -1;
    public static int turn_length = -1;
    public static boolean game_pause = false;
    public static Timer timer;
    public static double index;

    static{
          current_turn = -1;
          elapsed_second= -1;
          turn_length = -1;
          game_pause = false;
    }

    public static Turn getTurnInfo(){
        Turn turn= new Turn();
        turn.setCurrent_turn(current_turn);
        turn.setGame_pause(game_pause);
        if(game_pause){
            turn.setCountdown_second(-1);
        } else {
            turn.setCountdown_second(turn_length - elapsed_second);
        }
        turn.setIndex(index);
        return turn;
    }

}
